package com.huawei.M01.iterator.M14;

public class Parent {
    static int varF1 = 0;
    static {
        System.out.println("p cou varF1 = " + varF1);
        varF1++;
    }
    public Parent() {
        System.out.println("construct p" + "varF1" + varF1 + "lab2 = " + lab2);
        varF1++;
        lab2++;
    }
    int lab2 = 0;
    {
        System.out.println("p cou lab" + lab2);
        varF1++;
        lab2++;
    }
}

class Child extends Parent{
    static int varF1 = 0;
    static {
        System.out.println("c cou varF1 = " + varF1);
        varF1++;
    }
    public Child() {
        super();
        System.out.println("construct c" + "varF1" + varF1 + "lab2 = " + lab2);
        varF1++;
        lab2++;
    }
    int lab2 = 0;
    {
        System.out.println("c cou lab" + lab2);
        varF1++;
        lab2++;
    }

    public static void main(String[] args) {
        Child child = new Child();
    }

}
